package cn.jieruoda.eb.user.domain.repository;

import cn.jieruoda.eb.user.domain.entity.UserRecharge;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface UserRechargeRepository extends JpaRepository<UserRecharge, Integer> {
    Optional<UserRecharge> findByOrderId(String orderId);
    List<UserRecharge> findByUidAndPaid(Integer uid, Boolean paid);
    List<UserRecharge> findByRechargeTypeAndPaid(String rechargeType, Boolean paid);
} 